package com.appspot.mercadobgbr.client;

import com.appspot.mercadobgbr.shared.BoardGame;
import com.appspot.mercadobgbr.shared.Email;
import com.appspot.mercadobgbr.shared.Item;
import com.appspot.mercadobgbr.shared.Usuario;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * API for interacting with our jogos backend.
 */
@RemoteServiceRelativePath("api")
public interface JogosApi extends RemoteService {
	String getLoginUrl();

	Usuario[] getUsuarioList();

	BoardGame[] getBoardGames();

	String persistJogo(BoardGame boardGame);

	BoardGame[] getBoardGame(BoardGame potentialJogo);

	String persistUsuario(Usuario usuario);

	String persistJogo(Item item);

	Item[] getItemList();

	String enviarEmail(Email email);
}
